#include "Document.h"
#include <iostream>

using namespace std;


Document::Document()
{
}

Document::~Document()
{
}

vector<XMLNode*> Document::getChildList()
{
	return childList;
}

string Document::toString()
{
	string R;

	R = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
	for (unsigned int i = 0; i < this->childList.size(); i++)
	{
	    R += childList.at(i)->toString();
	    R += "\n";
	}

	return R;
}

void Document::setChildList(std::vector<XMLNode*> childList)
{
	this->childList = childList;
}

